package se480.paf.pipes;

import java.util.ArrayList;

/**
 * Wrapper class for the pipe payload data
 * 
 * @author mmichalak
 *
 */
public class Item {

	Object item;
	/**
	 * AL entries will contain 'filer name=time' so timing can be 
	 * broken down by filter
	 * E.g. StopWordFilter=220
	 */
	ArrayList<String> executeTimes = new ArrayList<String>();
	String name = "NoName";

	public Item(Object obj) {
		item = obj;
	}
	
	public Object getItem() {
		return item;
	}

	public void setItem(Object item) {
		this.item = item;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ArrayList<String> getExecuteTimes() {
		return executeTimes;
	}

	public void addExecuteTimes(String timing) {
		this.executeTimes.add(timing);
	}

	@Override
	public String toString() {
		return "Item [item=" + item + ", executeTimes=" + executeTimes
				+ ", name=" + name + "]";
	}

	
}
